
<form id="add-form" class="form-horizontal col-sm-12" role="form" data-toggle="validator" method="POST" action="">
	{:token()}
	<input type="hidden" name="row[id]" value="{$row.id}">


	<div class="col-xs-12 col-sm-10">
		<div class="form-group col-sm-10">
			<label>附件:</label>
			<div class="input-group">
				<input id="c-files" class="form-control" size="50" name="row[file_ids]" placeholder="请上传附件" type="text" data-rule="required">
				<div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="plupload-avatar" class="btn btn-danger plupload"
									  data-input-id="c-files"
									  data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp"
									  data-multiple="false" data-preview-id="p-collection_img"
									  data-url="qingdongams/base/upload"><i class="fa fa-upload"></i> 上传</button></span>

				</div>
				<span class="msg-box n-right" for="c-files"></span>
			</div>
			<ul class="row list-inline plupload-preview" id="p-collection_img"></ul>
		</div>
	</div>
	<div class="col-xs-12 col-sm-10">
		<div class="form-group col-sm-10">
			<label>备注:</label>
			<textarea class="form-control" data-rule="required" rows="3" name="row[desc]" placeholder="备注"></textarea>
		</div>
	</div>


	<div class="form-group layer-footer">
		<label class="control-label col-xs-12 col-sm-2"></label>
		<div class="col-xs-12 col-sm-8">
			<button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
			<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
		</div>
	</div>
</form>
